package cn.cs.fallback;

import cn.cs.client.RestClientUserClient;
import cn.cs.client.RestCsUserClient;
import cn.cs.pojo.ClientRepRel;
import cn.cs.pojo.ClientUser;
import cn.cs.pojo.CsUser;
import org.springframework.stereotype.Component;

import java.util.List;
import java.util.Map;

/**
 * 类似于try catch中的catch块中的内容，即发生错误时，处理的过程
 * 是用来发生熔断时的顶包组件,因此也必须实现接口
 * 异常时做一些处理，给用户一个交代
 * */
@Component
public class ClientUserClientFallBack implements RestClientUserClient {


    @Override
    public ClientUser getClientUserById(String id) throws Exception {
        return null;
    }

    @Override
    public ClientUser getClientUserByAccount(String id) throws Exception {
        return null;
    }

    @Override
    public ClientUser getClientUserByPhone(String phone) throws Exception {
        return null;
    }

    @Override
    public List<ClientUser> getClientUserByLikePhone(String phone) throws Exception {
        return null;
    }

    @Override
    public ClientUser getClientUserByOpenIdAccountNull(String openId) throws Exception {
        return null;
    }

    @Override
    public List<ClientUser> getClientUserListByMap(Map<String, Object> param) throws Exception {
        return null;
    }

    @Override
    public Integer getClientUserCountByMap(Map<String, Object> param) throws Exception {
        return null;
    }

    @Override
    public Integer insertClientUser(ClientUser ClientUser) throws Exception {
        return null;
    }

    @Override
    public Integer updateClientUser(ClientUser ClientUser) throws Exception {
        return null;
    }

    @Override
    public Integer updateClientUserByOpenId(ClientUser ClientUser) throws Exception {
        return null;
    }

    @Override
    public Integer updateClientUsersByOpenId(ClientUser clientUser) throws Exception {
        return null;
    }

    @Override
    public Integer deleteClientUserById(String id) throws Exception {
        return null;
    }

    @Override
    public ClientUser getClientUserByOpenId(String openId) throws Exception {
        return null;
    }

    @Override
    public Integer insertClientRepRel(ClientRepRel clientRepRel) throws Exception {
        return null;
    }

    @Override
    public Integer updateClientRepRel(ClientRepRel clientRepRel) throws Exception {
        return null;
    }

    @Override
    public Map<String, Object> getWxVersionCode() throws Exception {
        return null;
    }

    @Override
    public Integer setWxVersionCode(String versionCode) throws Exception {
        return null;
    }

    @Override
    public List<Map<String, Object>> getUserByRepUserId(String rep_user_id) throws Exception {
        return null;
    }

    @Override
    public Integer saveUserScoreHistory(Map<String, Object> map) throws Exception {
        return null;
    }

    @Override
    public List<Map<String, Object>> getUserScoreHistoryByUserId(String userId) throws Exception {
        return null;
    }

    @Override
    public List<ClientRepRel> getClientRepRelListByMap(Map<String, Object> param) throws Exception {
        return null;
    }
}
